<template>
	<view class="img-collect">
		<view class="main">
			<block v-for="(item,index) in list">
				<g-img :list="item"></g-img>
			</block>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:null
			};
		},
		onLoad() {
			const open = uni.getStorageSync('open')
			const db = uniCloud.database();
			db.collection('bz-collect').where({
				"open":open
			}).get().then(res=>{
				console.log(res.result.data,"查询")
				this.list = res.result.data
			})
		}
	}
</script>

<style lang="scss">
		.img-collect{
			.main{
				padding: 15rpx;
				display: flex;
				flex-wrap: wrap;
				justify-content: space-between;
			}
		}
</style>
